package ParameterizeMethod;

public class Salary {
	protected Double Salary = 0.0;
	
	public Salary(){}
		
	public Salary(double Salary)
	{
		this.Salary = Salary;
	}
	//TODO create one method that uses a parameter for the different values.
	
	private void changeSalary(int percentage){
		Salary *= (1+(percentage/100));
	}
	
	
	void fivePercentRaise() 
	{
		Salary *= 1.05 ;
	}
	
	void sevenPercentRaise() 
	{
		Salary *= 1.07 ;
	}

	void fivePercentDecrease() 
	{
		Salary *= 0.95 ;
	}
	
	void sevenPercentDecrease() 
	{
		Salary *= 0.93 ;
	}

}
